<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        function f() {
           var href = document.getElementById("se").href;
           document.getElementById("se");

           var s = href.split("/");
           alert(s[s.length - 1]);
            href

        }

    </script>
</head>
<body>
<a href="findStudentByPage" id="se" onclick="f()">asd</a>
</body>
</html>